package com.haixiaoke.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.common.annotation.Excel;
import com.haixiaoke.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 智能锁指纹授权信息对象 biz_smart_lock_fingerprint
 *
 * @author xiaolong
 * @date 2023-05-27
 */
@Data
public class SmartLockFingerprint extends BaseEntity {

    //指纹下发状态(0:待下发；1下发中；2下发完成)
    public static final Integer LOCK_STATE_UN_SEND = 0; //待下发
    public static final Integer LOCK_STATE_SEND_PROCESS = 1; //下发中
    public static final Integer LOCK_STATE_SEND_FINISH = 2; //下发完成
    private static final long serialVersionUID = 1L;
    /**
     * 指纹授权id
     */
    private Long fingerprintId;

    /**
     * 智能锁SN
     */
    @Excel(name = "智能锁SN")
    private String sn;

    /**
     * 密码标识/用户标识
     */
    @Excel(name = "标识")
    private String identification;

    /**
     * 指纹下发状态(0:待下发；1下发中；2下发完成)
     */
    @Excel(name = "指纹下发状态(0:待下发；1下发中；2下发完成)")
    private Integer sendStatus;

    /**
     * 指纹数据
     */
    @Excel(name = "指纹数据")
    private String fingerprint;

    /**
     * 授权开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "授权开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 授权结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "授权结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;


}
